package com.gtenacg.cartoonservice.pojo.vo;

import com.gtenacg.cartoonservice.pojo.model.Cartoon;
import com.gtenacg.cartoonservice.pojo.model.Novel;
import lombok.Data;

import java.util.List;

@Data
public class NovelVo {
    private Integer nid;
    private String name;
    private String synopsis;
    private String src;
    private String cover;
    private Integer updateStatus;
    private List<String> types;
    private List<String> authors;

    public NovelVo(Novel novel, List<String> types, List<String> authors) {
        this.nid = novel.getNid();
        this.name = novel.getName();
        this.synopsis = novel.getSynopsis();
        this.src = novel.getSrc();
        this.cover = novel.getCover();
        this.updateStatus = novel.getUpdateStatus();

        this.types = types;
        this.authors = authors;
    }
}
